package com.lc.luzhengtang.conn;

import com.zcx.helper.http.AsyCallBack;
import com.zcx.helper.http.AsyPostForm;
import com.zcx.helper.http.note.HttpSecret;
import com.zcx.helper.http.note.HttpServer;
import com.zcx.helper.secret.SecretRSA;

/**
 * BaseAsyPost
 * Created by Administrator on 2016/3/14.
 */
@HttpSecret(key = "param")
@HttpServer(Conn.SERVICE)
 public class BaseAsyPost<T> extends AsyPostForm<T> {


    public BaseAsyPost(AsyCallBack<T> asyCallBack) {
        super(asyCallBack);
      /*  if (Conn.ENCRYPTABLE) {
            SECRET_REQUEST = SECRET_RESPONSE = new SecretAESDESede(Conn.KEY, Conn.IV, SecretAESDESede.DESEDE_CBC_PKCS7PADDING);
        }*/
        if (Conn.ENCRYPTABLE) {
            SECRET_REQUEST = new SecretRSA("rsa_public_key.pem","pkcs8_rsa_private_key.pem");
        }
    }

}
